package com.ruoyi.home.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 首页模板对象 homepage_template
 * 
 * @author ruoyi
 * @date 2024-01-20
 */
public class HomepageTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板ID */
    private Long id;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String templateName;

    /** 模板描述 */
    @Excel(name = "模板描述")
    private String templateDesc;

    /** 所属校区ID（NULL表示通用模板） */
    @Excel(name = "所属校区ID")
    private Long campusId;

    /** 模板数据JSON（包含组件配置、选中数据等） */
    @Excel(name = "模板数据JSON")
    private String templateData;

    /** 是否启用（0:未启用 1:启用） */
    @Excel(name = "是否启用", readConverterExp = "0=未启用,1=启用")
    private Integer isActive;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }
    public void setTemplateDesc(String templateDesc) 
    {
        this.templateDesc = templateDesc;
    }

    public String getTemplateDesc() 
    {
        return templateDesc;
    }
    public void setCampusId(Long campusId) 
    {
        this.campusId = campusId;
    }

    public Long getCampusId() 
    {
        return campusId;
    }
    public void setTemplateData(String templateData) 
    {
        this.templateData = templateData;
    }

    public String getTemplateData() 
    {
        return templateData;
    }
    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateName", getTemplateName())
            .append("templateDesc", getTemplateDesc())
            .append("campusId", getCampusId())
            .append("templateData", getTemplateData())
            .append("isActive", getIsActive())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 